//
//  TransferOutBottomView.m
//  Wallet
//
//  Created by  ztryxh on 2018/6/12.
//  Copyright © 2018年 ebo. All rights reserved.
//

#import "TransferOutBottomView.h"
#import "CoinDetailModel.h"
@interface TransferOutBottomView()
{
    UITextView *infoTextView;
//    UIView *pointOne;
//    UIView *pointTwo;
//    UIView *pointThree;
//    UIView *pointFour;
    
    UILabel *infoOneLabel;
    UILabel *infoTwoLabel;
    UILabel *infoThreeLabel;
    UILabel *infoFourLabel;
}
@end
@implementation TransferOutBottomView
#pragma mark - Pricacy
-(instancetype)init{
    
    if(self==[super init]){
        
        [self initUI];
        
    }
    return self;
    
}
-(void)layoutSubviews{
    

    
    
//    [pointOne mas_makeConstraints:^(MASConstraintMaker *make) {
//
//        make.left.equalTo(self).offset(kSCALE_WIDTH(12));
//        make.top.equalTo(self).offset(kSCALE_WIDTH(22));
//        make.size.mas_equalTo(CGSizeMake(5,5));
//    }];
    
    [infoOneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.left.equalTo(self).offset(kSCALE_WIDTH(12));
        make.top.equalTo(self).offset(kSCALE_WIDTH(22));
        make.right.equalTo(self).offset(kSCALE_WIDTH(-8));

//        make.centerY.equalTo(pointOne);
    }];
    
//    [pointTwo mas_makeConstraints:^(MASConstraintMaker *make) {
//
//        make.left.equalTo(self).offset(kSCALE_WIDTH(12));
//        make.top.equalTo(infoOneLabel.mas_bottom).offset(kSCALE_WIDTH(17));
//         make.size.mas_equalTo(CGSizeMake(5,5));
//    }];
//
//    [infoTwoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//
//        make.left.equalTo(self).offset(kSCALE_WIDTH(8));
//        make.centerY.equalTo(pointTwo);
//    }];
//
////    [pointThree mas_makeConstraints:^(MASConstraintMaker *make) {
////
////        make.left.equalTo(self).offset(kSCALE_WIDTH(12));
////         make.top.equalTo(infoTwoLabel.mas_bottom).offset(kSCALE_WIDTH(17));
////     make.size.mas_equalTo(CGSizeMake(5,5));
////    }];
//
//    [infoThreeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//
//        make.left.equalTo(self).offset(kSCALE_WIDTH(8));
//        make.centerY.equalTo(pointThree);
//    }];
//
////    [pointFour mas_makeConstraints:^(MASConstraintMaker *make) {
////
////        make.left.equalTo(self).offset(kSCALE_WIDTH(12));
////        make.top.equalTo(infoThreeLabel.mas_bottom).offset(kSCALE_WIDTH(17));
////         make.size.mas_equalTo(CGSizeMake(5,5));
////    }];
//
//    [infoFourLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//
//        make.left.equalTo(self).offset(kSCALE_WIDTH(8));
//        make.centerY.equalTo(pointFour);
//    }];
  
}
-(void)initUI{
    

    
//    [self setBackgroundColor:kBackColor];
//    [self addSubview:self.turnOutBtn];
    
//    NSMutableArray *arr=[NSMutableArray arrayWithObjects:@"最小提币数量为：",@"手续费会从可用余额中扣除，请确保账户余额充足。",@"为保障资金安全，我们会对您的转账进行人工审核，请耐心等待。", @"请务必确认电脑及浏览器安全，防止信息被篡改或泄露。",nil];
    
//    pointOne=[self creatPointView];
//    [self addSubview:pointOne];
    
    infoOneLabel  = [UILabel new];
    infoOneLabel.font = kFONT(14);
    infoOneLabel.numberOfLines = 0;
    infoOneLabel.textColor = rgb(131,131,131);
    infoOneLabel.text = @"1.最小提币数量为：\n手续费会从可用余额中扣除，请确保账户余额充足。\n2.为保障资金安全，我们会对您的转账进行人工审核，请耐心等待。\n3.通过管家云银包之间的转账操作，免手续费，并且支持瞬间到账。";
    [self addSubview:infoOneLabel];
    
//    infoOneLabel=[self privacy_createLabel];
//    [infoOneLabel setText:[arr objectAtIndex:0]];
//    [self addSubview:infoOneLabel];
//
////    pointTwo=[self creatPointView];
////    [self addSubview:pointTwo];
//
//    infoTwoLabel=[self privacy_createLabel];
//    [infoTwoLabel setText:[arr objectAtIndex:1]];
//    [self addSubview:infoTwoLabel];
//
////    pointThree=[self creatPointView];
////    [self addSubview:pointThree];
//
//    infoThreeLabel=[self privacy_createLabel];
//    [infoThreeLabel setText:[arr objectAtIndex:2]];
//    [self addSubview:infoThreeLabel];
////    pointFour=[self creatPointView];
////    [self addSubview:pointFour];
//
//    infoFourLabel=[self privacy_createLabel];
//    [infoFourLabel setText:[arr objectAtIndex:3]];
//    [self addSubview:infoFourLabel];
    
}
-(void)turnOutBtnClick{
    
    if(self.btnBlock){
        
        self.btnBlock();
    }
}
-(UILabel *)privacy_createLabel
{
    UILabel *label=[[UILabel alloc]init];
    [label setTextColor:kGrayColor];
    [label setFont:FONT(12)];
    [label setNumberOfLines:0];
    [label setLineBreakMode:NSLineBreakByWordWrapping];
    return label;
}
-(UIView *)creatPointView{
    
    UIView *leftIv=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 5, 5)];
//    [leftIv setBackgroundColor:kGrayColor];
    [leftIv.layer setMasksToBounds:YES];
    [leftIv.layer setCornerRadius:2.5];
    return leftIv;
}
-(void)setModel:(TransferOutInfoModel *)model{
    
    [infoOneLabel setText:[NSString stringWithFormat:@"1.最小提币数量为：%@%@\n手续费会从扣除可用余额中，请确保账户余额充足。\n2.为保障资金安全，我们会对您的转账进行人工审核，请耐心等待。\n3.通过管家云银包之间的转账操作，免手续费，并且支持瞬间到账。",model.zc_min,model.type]];
}
#pragma mark -lazy


@end
